<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>

    *{
      margin: 0;
      padding: 0;
    }

    .container{
      width: 600px;
      margin: 300px auto;
      perspective: 900px;
    }

    .box{
      width: 200px;
      height: 300px;
      transform-style: preserve-3d;
      position: relative;
      /* background: url(https://gitee.com/rawait/rwpicgo/raw/master/teaching/2021-12-22/202112220812459.png) no-repeat; */
      animation: horse 15s linear infinite;
    }

    @keyframes horse{
      0%{
        transform: rotateY(0);
      }

      100%{
        transform: rotateY(360deg);
      }
    }

    .wooden-horse{
      width: 200px;
      height: 300px;
      position: absolute;
      background: url(https://gitee.com/rawait/rwpicgo/raw/master/teaching/2021-12-22/202112220812459.png)no-repeat;
    }

    .wooden-horse:nth-child(1){
      transform: translateZ(400px);
    }
    .wooden-horse:nth-child(2){
      transform: rotateY(40deg) translateZ(400px);
    }
    .wooden-horse:nth-child(3){
     transform: rotateY(80deg) translateZ(400px);
    }
    .wooden-horse:nth-child(4){
     transform: rotateY(120deg) translateZ(400px);
    }
    .wooden-horse:nth-child(5){
     transform: rotateY(160deg) translateZ(400px);
    }
    .wooden-horse:nth-child(6){
     transform: rotateY(200deg) translateZ(400px);
    }
    .wooden-horse:nth-child(7){
     transform: rotateY(240deg) translateZ(400px);
    }
    .wooden-horse:nth-child(8){
     transform: rotateY(280deg) translateZ(400px);
    }
    .wooden-horse:nth-child(9){
     transform: rotateY(320deg) translateZ(400px);
    }
  </style>
</head>
<body>
  <div class="container">
    <div class="box">
      <div class="wooden-horse"></div>
      <div class="wooden-horse"></div>
      <div class="wooden-horse"></div>
      <div class="wooden-horse"></div>
      <div class="wooden-horse"></div>
      <div class="wooden-horse"></div>
      <div class="wooden-horse"></div>
      <div class="wooden-horse"></div>
      <div class="wooden-horse"></div>
    </div>
  </div>
</body>
</html>